package cn.itcast.cd.service.impl;

import java.util.List;

import cn.itcast.cd.dao.IRoleDao;
import cn.itcast.cd.domain.Role;
import cn.itcast.cd.domain.User;
import cn.itcast.cd.resultPage.ResultPage;
import cn.itcast.cd.service.IRoleService;
import cn.itcast.cd.utils.MD5;

public class RoleServiceImpl implements IRoleService {

	private IRoleDao roleDao;
	
	

	public void setRoleDao(IRoleDao roleDao) {
		this.roleDao = roleDao;
	}



	@Override
	public void save(Role role) {
		roleDao.save(role);
	}



	@Override
	public Role get(Long id) {
		return roleDao.get(id);
	}



	@Override
	public void delete(Long id) {
		roleDao.delete(id);
	}



	@Override
	public void update(Role role) {
		roleDao.update(role);
	}



	@Override
	public List<Role> queryEntity(String conditions, Object[] params) {
		return roleDao.queryEntity(conditions, params);
	}

	

}
